/**
 *  @file SDLException.h
 *
 *  @date 19-nov-2009
 *  @author Ives van der Flaas
 */

#ifndef SDLEXCEPTION_H_
#define SDLEXCEPTION_H_

#include <exception>
#include <string>

namespace si_sdl
{
/**
 * All SDL related exceptions that will be thrown are either of
 * type SDLException or of a derived class.
 */
class SDLException: public std::exception
{
public:
	SDLException(std::string description);
	virtual ~SDLException() throw() {}
	virtual const char* what() const throw();


protected:
	std::string fErrorString;


};

}

#endif /* SDLEXCEPTION_H_ */
